package com.neuedu.common.enums;

public enum Role {
    /**
     * 管理员角色key
     */
    ADMIN(1L, "admin"),
    /**
     * 教务处角色key
     */
    EDUCATIONAL(2L, "educational"),
    /**
     * 教师角色key
     */
    TEACHER(3L, "teacher"),
    /**
     * 助教角色key
     */
    ASSISTANT(4L, "assistant"),
    /**
     * 学生角色key
     */
    STUDENT(5L, "student");

    private final Long code;
    private final String key;

    Role(Long code, String key) {
        this.code = code;
        this.key = key;
    }

    public Long getCode() {
        return code;
    }

    public String getKey() {
        return key;
    }

}
